package com.erju.service.impl;

import com.erju.dao.ExamineMapper;
import com.erju.pojo.SlExamine;
import com.erju.service.ExamineService;
import com.erju.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 实验室监测数据
 * @author: erju
 * @date: 2022.06.01
 */
@Service
public class ExamineServiceImpl implements ExamineService {
    @Autowired
    ExamineMapper examineMapper;

    @Override
    public Result selectAllExamine() {
        List<SlExamine> allExamine = examineMapper.getAllExamine();
        return Result.success("200","查询实验数据成功",allExamine);
    }

    @Override
    public Result getAllLabName() {
        List<String> LabNameList = examineMapper.getAllLabName();
        return Result.success("200","查询实验室数据成功",LabNameList);
    }
}
